<template>
    <div class="toast" v-show="toisshow">
        <img src="@/assets/img/detail/success.png" alt="">
        <div class="title">{{message}}</div>
    </div>
</template>

<script>
export default {
    props:{
        message:String,
        toisshow:{
        type:Boolean,
        default:false
    }
    },
    methods: {
        
    },
    
}
</script>

<style scoped>
.toast{
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: rgba(0, 0, 0, .8);
    width: 100px;
    text-align: center;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;

}
.toast img{
    width: 40px;
}
.title{
    color: rgb(253, 10, 10);
    font-weight: 600;
}
</style>